Adjust non-default sized console ring allocation
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Aug 2009 08:51:05 +0000 (09:51 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Aug 2009 08:51:05 +0000 (09:51 +0100)
commit77980d7d07979bdc148d78c4c6b57972c9f65c37
treed4bc242ada90294816fc428f12514dabecd65650
parentb05c476cf6595bbdc7017e9c2a683fdd5cf72117
Adjust non-default sized console ring allocation

Using xmalloc() for objects that are guaranteed to be at least as
large as a page is wasteful, as it will always result in more (here:
double the amount) being allocated.

The other adjustments are more cosmetic:
- Updating conring and conring_size can be done so NMI/MCE generated
  messages don't use the new (larger) size with the old (smaller)
  buffer.
- The size printed can be in KiB (for the value to be easier to grasp)
  since it is always a multiple of the default of 16KiB.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/drivers/char/console.c